using UnityEngine;

namespace LS.GameKit
{
    public class MapBlockViewer2DUtility
    {

        public static void ResetWhiteFrame(SpriteRenderer renderer, ComplexTiledSpriteController controller)
        {
            if (renderer != null)
            {
                renderer.color = Color.white;
                renderer.drawMode = SpriteDrawMode.Tiled;
                renderer.tileMode = SpriteTileMode.Continuous;
                renderer.spriteSortPoint = SpriteSortPoint.Center;
            }

            if (controller != null)
            {

            }
        }

        public static void ResetInnerFiller(SpriteRenderer renderer, ComplexTiledSpriteController controller)
        {
            if (renderer != null)
            {
                renderer.color = Color.white;
                renderer.drawMode = SpriteDrawMode.Tiled;
                renderer.tileMode = SpriteTileMode.Continuous;
                renderer.spriteSortPoint = SpriteSortPoint.Center;
            }

            if (controller != null)
            {

            }
        }

        public static void ResetSketchMap(SpriteRenderer renderer)
        {
            renderer.color = Color.white;
            renderer.drawMode = SpriteDrawMode.Sliced;
            renderer.spriteSortPoint = SpriteSortPoint.Center;
        }

    }
}
